using System;
using System.Collections.Generic;
using System.Text;

namespace RaisingStudio.Data.Common.Converters
{
    public class StringByteConverter : IDbTypeConverter
    {
        #region IDbTypeConverter Members

        public object ConvertFromDbType(object value)
        {
            return byte.Parse(value as string);
        }

        public object ConvertToDbType(object value)
        {
            return Convert.ToString(value);
        }

        #endregion
    }
}
